package book;

public class Book {
    private String bookName;
    private String author;
    private double prize;
    private String type;
    private boolean isBorrowed;

    public Book(String bookName,String author,double prize,String type){
        this.bookName=bookName;
        this.author=author;
        this.prize=prize;
        this.type=type;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public void setPrize(double prize) {
        this.prize = prize;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setBorrowed(boolean borrowed) {
        isBorrowed = borrowed;
    }

    public String getBookName() {
        return bookName;
    }

    public String getAuthor() {
        return author;
    }

    public double getPrize() {
        return prize;
    }

    public String getType() {
        return type;
    }

    public boolean isBorrowed() {
        return isBorrowed;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bookName='" + bookName + '\'' +
                ", author='" + author + '\'' +
                ", prize=" + prize +
                ", type='" + type + '\'' +
                ", isBorrowed=" + isBorrowed +
                '}';
    }
}
